package com.edevp.common.core.util;

import com.edevp.common.core.util.string.StringUtil;

import java.util.UUID;

/**
 * @author Lean
 * @description 通用操作类
 * @create 2019-11-18 14:42
 **/
public class CommonUtil {
    public static synchronized String getUUID(){
        //用hibernate的UUID生成器
        //return UUID.randomUUID().toString();
        return UUID.randomUUID().toString().replaceAll("-","");
    }

    public static boolean isNotNull(Object o){
        return StringUtil.isNotNull(o);
    }

    public static boolean isNull(Object o){
        return !isNotNull(o);
    }
}
